Skip to content

feat: add a mjcf loader#936

Merged
sebcrozet merged 5 commits into
masterfrom
mjcf
May 29, 2026
Merged

feat: add a mjcf loader#936
sebcrozet merged 5 commits into
masterfrom
mjcf

Conversation

@sebcrozet
Copy link
Copy Markdown
Member

@sebcrozet sebcrozet commented May 29, 2026

As part of our goal to make Rapier more suitable for robotics, this PR adds two crates:

  • mjcf-rs for loading MJCF (MuJoCo scene format) files independently from Rapier.
  • rapier3d-mjcf for loading a MJCF scene into rapier using either impulse joints or multibody joints.

This is somewhat similar to the URDF loader.
This adds two examples: one with a simple MJCF robot, and one that allows you to cycle through the robots from the mujoco menagerie (the mujoco_menagerie repository needs to be cloned separately).

It’s not 100% functional as there are still some issues wrt. loop-closing joints, but the goal is to get the bulk of the code merged and continue with followup bug fixes.

Because the implementation of both of these crates involve AI coding, disclaimers have been added to their README and a AI coding disclaimer has been added to the main README of the repository.

@sebcrozet sebcrozet merged commit 0831245 into master May 29, 2026
9 checks passed
@sebcrozet sebcrozet deleted the mjcf branch May 29, 2026 15:47
@sebcrozet sebcrozet mentioned this pull request Jun 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant